using UnityEngine;

namespace Exploder.Demo
{
	public class WeaponManager : MonoBehaviour
	{
		public GameObject Shotgun;

		public GameObject RPG;

		private void Update()
		{
			if (UnityEngine.Input.GetKeyDown(KeyCode.Alpha1))
			{
				ExploderUtils.SetActiveRecursively(RPG, status: false);
				ExploderUtils.SetActiveRecursively(Shotgun, status: true);
				Shotgun.GetComponent<ShotgunController>().OnActivate();
			}
			if (UnityEngine.Input.GetKeyDown(KeyCode.Alpha2))
			{
				ExploderUtils.SetActiveRecursively(RPG, status: true);
				ExploderUtils.SetActiveRecursively(Shotgun, status: false);
				RPG.GetComponent<RPGController>().OnActivate();
			}
		}
	}
}
